import request from '@/utils/request'

// 查询工作提醒频率设置列表
export function listWorkLogSetting(query) {
  return request({
    url: '/campus/workLogSetting/list',
    method: 'get',
    params: query
  })
}

// 查询工作提醒频率设置详细
export function getWorkLogSetting(crsId) {
  return request({
    url: '/campus/workLogSetting/' + crsId,
    method: 'get'
  })
}

// 新增工作提醒频率设置
export function addWorkLogSetting(data) {
  return request({
    url: '/campus/workLogSetting',
    method: 'post',
    data: data
  })
}

// 修改工作提醒频率设置
export function updateWorkLogSetting(data) {
  return request({
    url: '/campus/workLogSetting',
    method: 'put',
    data: data
  })
}

// 删除工作提醒频率设置
export function delWorkLogSetting(crsId) {
  return request({
    url: '/campus/workLogSetting/' + crsId,
    method: 'delete'
  })
}
